<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">

	<head>
<title><?php echo ($sys['sys_name']); ?></title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link href="/Public/Admin/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/Public/Admin/css/font-awesome.min.css?v=4.1" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/cropper/cropper.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/switchery/switchery.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/jasny/jasny-bootstrap.min.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/nouslider/jquery.nouislider.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="/Public/Admin/css/plugins/clockpicker/clockpicker.css" rel="stylesheet">
    <link href="/Public/Admin/css/animate.min.css" rel="stylesheet">  
    <link href="/Public/Admin/css/style.min.css?v=4.0.0" rel="stylesheet">	
    <link href="/Public/Admin/css/uploadfile.css" rel="stylesheet">
   	<script src="/Public/Admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Public/Common/layer/layer.js"></script>
    <script src="/Public/Admin/js/jquery.form.js"></script>
</head>

	<style>
.pages a,.pages span {
    display:inline-block;
    padding:4px 7px;
    margin:0 2px;
    border:1px solid #D5D4D4;
    -webkit-border-radius:1px;
    -moz-border-radius:1px;
    border-radius:1px;
}
.pages a,.pages li {
    display:inline-block;
    list-style: none;
    text-decoration:none; color:#077ee3;
}

.pages a:hover{
    border-color:#077ee3;
}
.pages span.current{
    background:#077ee3;
    color:#FFF;
    font-weight:700;
    border-color:#077ee3;
}

.long-tr th{
	text-align: center
}
.long-td td{
	text-align: center
}

</style>

	<script>
$(function(){
	$('#edit').ajaxForm({
		beforeSubmit: checkForm, // 此方法主要是提交前执行的方法，根据需要设置
		success: complete, // 这是提交后的方法
		dataType: 'json'
	});

	function checkForm(){
		if( '' == $.trim($('#cost').val())){
			layer.alert('回复信息不能为空', {icon: 5}, function(index){
 			layer.close(index);
			$('#username').focus();
			});
			return false;
		}


 }
	function complete(data){
		if(data.status==1){
			layer.msg(data.info, {icon: 6,time:1000}, function(index){
 			layer.close(index);
			window.location.href=data.url;
			});
		}else{
			layer.msg(data.info, {icon: 5,time:1000}, function(index){
 			layer.close(index);
			});
			return false;
		}
	}

});
</script>
	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
		    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span><img alt="image" class="img-circle" src="/Uploads/<?php echo ($_SESSION['admin_img']); ?>" onerror="this.src='/Public/Admin/img/touxiang_default.gif'" width="70px" height="70px"/></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong><?php echo ($_SESSION['admin_realname']); ?></strong></span>
                                <span class="text-muted text-xs block">
                                    <?php echo ($admin_group["title"]); ?>
                                	<b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li><a href="<?php echo U('Sys/pwd');?>">修改密码</a></li>
                                <li><a href="javascript:;" id="cache">清除缓存</a></li>
                                <li><a href="<?php echo U('Sys/sys');?>">设置</a></li>
                                <li class="divider"></li>
                                <li><a href="javascript:;" id="logout">退出系统</a></li>
                            </ul>
                        </div>
                        <div class="logo-element">挪窝</div>
                    </li>
                    <li>
                        <a class="J_menuItem" href="<?php echo U(Index/index);?>"><i class="fa fa-home"></i> <span class="nav-label">主页</span>
                        <span class="label label-danger pull-right">NEW</span></a>
                    </li>

<?php use Common\Controller\AuthController; use Think\Auth; $m = M('auth_rule'); $field = 'id,name,title,css'; $data = $m->field($field)->where('pid=0 AND status=1')->order('sort')->select(); $auth = new Auth(); foreach ($data as $k=>$v){ if(!$auth->check($v['name'], $_SESSION['aid']) && $_SESSION['aid'] != 1){ unset($data[$k]); } } ?>

	<?php if(is_array($data)): foreach($data as $key=>$v): ?><li class="<?php if(CONTROLLER_NAME == $v['name']): ?>active<?php endif; ?>"><!--open代表打开状态-->
				<a href="#">
					<i class="menu-icon fa <?php echo ($v["css"]); ?>"></i>
					<span class="nav-label"><?php echo ($v["title"]); ?></span><span class="fa arrow"></span>
				</a>

			<ul class="nav nav-second-level">
    <?php $m = M('auth_rule'); $dataa = $m->where(array('pid'=>$v['id'],'status'=>1))->order('sort')->select(); foreach ($dataa as $kk=>$vv){ if(!$auth->check($vv['name'], $_SESSION['aid']) && $_SESSION['aid'] != 1){ unset($dataa[$kk]); } } ?>
		    <?php if(is_array($dataa)): foreach($dataa as $key=>$j): ?><li class=" <?php if(($_SESSION['se'] == $j['id'])): ?>active<?php endif; ?>">
						<a href="<?php echo U($j['name'],array('se'=>$j['id']));?>"><?php echo ($j["title"]); ?></a>						
					</li><?php endforeach; endif; ?>
			</ul>
		</li><?php endforeach; endif; ?>

        </ul>
    </div>
</nav>
<script type="text/javascript">
$(document).ready(function(){
    $("#logout").click(function(){
        layer.confirm('你确定要退出吗？', {icon: 3}, function(index){
        layer.close(index);
        window.location.href="<?php echo U('Login/logout');?>";
    });
    });
});



    $(function(){
        $("#cache").click(function(){
            layer.confirm('你确定要清除缓存吗？', {icon: 3}, function(index){
                layer.close(index);
                window.location.href="<?php echo U('Sys/clearRuntime');?>";
            });
        });
    });

    
</script>

    <div id="page-wrapper" class="gray-bg dashbard-1">
    <div class="row border-bottom">
	<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
		<div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
			<form role="search" class="navbar-form-custom" method="post" action="search_results.html">
				<div class="form-group">
					<input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
				</div>
			</form>
		</div>
		<ul class="nav navbar-top-links navbar-right">
			<li>
				<span class="m-r-sm text-muted welcome-message">
					<a href="<?php echo U('Index/index');?>" title="返回首页"><i class="fa fa-home"></i></a>欢迎使用<?php echo ($sys['sys_name']); ?>
					<span class="label label-danger pull-right"><?php echo ($Os); ?></span>
				</span>
			</li>
			<!-- <li class="hidden-xs">
				<a href="http://tianjianlong.com.cn" class="J_menuItem" data-index="0"><i class="fa fa-cart-arrow-down"></i> 购买</a>
			</li> -->
			<li>
				<a href="javascript:;"  id="loginout">
					<i class="fa fa-sign-out"></i> 退出
				</a>
			</li>
		</ul>
	</nav>
</div>


<script type="text/javascript">
$(document).ready(function(){
	$("#loginout").click(function(){
		layer.confirm('你确定要退出吗？', {icon: 3}, function(index){
	    layer.close(index);
	    window.location.href="<?php echo U('Login/logout');?>";
	});
	});
});
</script>

		<div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-12">
                <h2>订单回复</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="<?php echo U('Index/index');?>"><i class="fa fa-home"></i> 主页</a>
                    </li>
                    <li>
                        <a>订单管理</a>
                    </li>
                    <li>
                        <strong>订单回复</strong>
                    </li>
                </ol>
            </div>
        </div>
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>订单回复</h5>
						<div class="ibox-tools">
							<a class="collapse-link">
								<i class="fa fa-chevron-up"></i>
							</a>
						</div>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal" name="edit" id="edit" method="post" action="">
							<input type="hidden" name="id" id="replyid" value="<?php echo ($list["id"]); ?>" />
							<div class="form-group">
								<label class="col-sm-2 control-label">订单号</label>
								<div class="col-sm-5">
									<p><?php echo ($list["orderno"]); ?></p>
								</div>
							</div>
				            <div class="hr-line-dashed"></div>
				            <div class="form-group">
								<label class="col-sm-2 control-label">姓名</label>
								<div class="col-sm-5">
									<p><?php echo ($list["name"]); ?></p>
								</div>
							</div>
                            <div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">出发地</label>
								<div class="col-sm-5">
									<p><?php echo ($list["startadd"]); ?></p>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
                                <div class="form-group">
								<label class="col-sm-2 control-label">目的地</label>
								<div class="col-sm-5">
									<p><?php echo ($list["endadd"]); ?></p>
								</div>
							</div>
                            </div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">电话</label>
								<div class="col-sm-5">
									<p><?php echo ($list["mphone"]); ?></p>
								</div>
							</div>
                            <div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">订单报价</label>
								<div class="col-sm-5">
									<input type="text" name="cost" id="cost" value="<?php echo ($list["cost"]); ?>" placeholder="请输入订单报价" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">预计装载量</label>
								<div class="col-sm-5">
									<input type="text" name="load" id="load" value="<?php echo ($list["load"]); ?>" placeholder="请输入预计装载量" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">车辆配备</label>
								<div class="col-sm-5">
									<input type="text" name="equipment" id="equipment" value="<?php echo ($list["equipment"]); ?>" placeholder="请输入预计装载量" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">人员配备</label>
								<div class="col-sm-5">
									<input type="text" name="peaple" id="peaple" value="<?php echo ($list["peaple"]); ?>" placeholder="请输入人员配备" class="form-control" />
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">费用说明</label>
								<div class="col-sm-5">
								<textarea name="fee_explain" id="fee_explain" class="form-control" rows="3"></textarea>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-2">
									<button class="btn btn-primary" type="submit">提交信息</button>&nbsp;&nbsp;&nbsp;
									<a class="btn btn-danger" href="javascript:history.go(-1);">返回</a>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="footer" style="position: fixed;z-index: 999;bottom: 0;width: 89%;">
	<div class="pull-right"><?php echo ($sys['sys_name']); ?> Copyright © 2016</div>
</div>
</div>
</div>
<script type="text/javascript" src="/Public/Admin/js/bootstrap.min.js?v=3.3.5"></script>
<script type="text/javascript" src="/Public/Admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script type="text/javascript" src="/Public/Admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/Public/Admin/js/hplus.min.js?v=4.0.0"></script>
<script type="text/javascript" src="/Public/Admin/js/plugins/switchery/switchery.js"></script>
<script type="text/javascript" src="/Public/Admin/js/contabs.min.js"></script>
<script type="text/javascript" src="/Public/Common/laydate/laydate.js"></script>
<script type="text/javascript" src="/Public/Admin/js/plugins/pace/pace.min.js"></script>
<script type="text/javascript" src="/Public/Admin/js/plugins/chosen/chosen.jquery.js"></script>
<script type="text/javascript" src="/Public/Admin/js/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript" src="/Public/Admin/js/plugins/sweetalert/sweetalert.min.js"></script>

<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
</script>

	<script type="text/javascript" src="/Public/Admin/uploadify/jquery.uploadify.min.js"></script>
	<link rel="stylesheet" href="/Public/Admin/uploadify/uploadify.css">
	</body>

</html>

<!-- 下拉CSS样式 -->
<script>

	/*$.post( "/nw.php/Order/info", {
				sAdress:$("#startAdd").val(),
				eAdress:$("#endAdd").val(),
				car:$("#car").val(),
				dst:$('#dst').html(),
		    }, function(data, status) {
		    	 $("#cost").html(data);
		    	 $("#costInput").val(data);
		    });*/


    var config = {
        '.chosen-select': {},
    }
    for (var selector in config) {
        $(selector).chosen(config[selector]);
    }

</script>

<!-- IOS开关样式配置 -->
<script>
var elem = document.querySelector('.js-switch');
    var switchery = new Switchery(elem, {
        color: '#1AB394'
    });
var config = {
    '.chosen-select': {},
}
for (var selector in config) {
    $(selector).chosen(config[selector]);
}

</script>



	</body>
</html>